package com.zjitc.service.impl;

import com.zjitc.dao.UserDao;
import com.zjitc.service.Userservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

@Component("UserService")
public class UserServiceImpl implements Userservice {
    @Autowired
    private UserDao userDao;

    @RequestMapping("/user-save")
    public void save() {
        userDao.save();
        System.out.println("UserServiceImpl save");
    }
}
